<template>
  <div>
    <div class="head">
      <span @click="back"><i class="el-icon-arrow-left"></i></span>
      优惠券
    </div>
    <div class="coupon-item">
      <div class="style-two">
        <div class="info-box">
          <p class="nick">Super麦优惠劵</p>

          <div class="coupon-money">
            <div class="lay of">￥<em>500</em></div>

            <div class="lay">
              <p class="tit">演唱会</p>

              <p class="demand">满5000元可用</p>
            </div>
          </div>
          <p class="date">有效时间:2020.09.20-2020.10.30</p>
        </div>

        <a href="javascript:;" class="get-btn">
          <span>立即领取</span>
        </a>
      </div>
    </div>

    <div class="coupon-item">
      <div class="style-six">
        <div class="info-box">
          <p class="nick">Super麦优惠券</p>

          <div class="coupon-money">
            <div class="lay of">￥<em>100</em></div>

            <div class="lay">
              <p class="tit">全场通用</p>

              <p class="demand">满1000元可用</p>
            </div>
          </div>

          <p class="date">有效时间:2020.09.11-2020.10.21</p>
        </div>

        <a href="javascript:;" class="get-btn">
          <span>点击领取</span>
        </a>
      </div>
    </div>

    <div class="coupon-item">
      <div class="style-two have">
        <div class="info-box">
          <p class="nick">Super麦优惠劵</p>

          <div class="coupon-money">
            <div class="lay of">￥<em>50</em></div>

            <div class="lay">
              <p class="tit">曲苑杂坛</p>

              <p class="demand">满500元可用</p>
            </div>
          </div>

          <p class="date">有效时间:2020.09.26-2020.10.10</p>
        </div>

        <a href="javascript:;" class="get-btn">
          <span>已领取</span>
        </a>
      </div>
    </div>

    <div class="coupon-item">
      <div class="style-six have">
        <div class="info-box">
          <p class="nick">Super麦优惠券</p>

          <div class="coupon-money">
            <div class="lay of">￥<em>50</em></div>

            <div class="lay">
              <p class="tit">全场通用</p>

              <p class="demand">满300元可用</p>
            </div>
          </div>

          <p class="time">有效时间:2020.09.20-2020.10.05</p>
        </div>

        <a href="javascript:;" class="get-btn">
          <span>已领取</span>
        </a>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    back(){
      history.go(-1)
    }
  },
}
</script>
<style scoped>
.head {
  width: 100vw;
  height: 60px;
  background-color: deeppink;
  font-size: 20px;
  line-height: 60px;
  color: white;
}
.head > span {
  float: left;
  color: white;
  font-size: 30px;
}

a {
  text-decoration: none;
  color: #a1a1a1;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

a:active {
  color: #8c88ff;
  border: none;
  outline: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

input {
  border: 1px solid #999;
  line-height: normal;
  vertical-align: middle;
  outline: 0;
  border-radius: 0;
  background: #ffffff;
  -webkit-appearance: none;
}

input[type="radio"],
input[type="checkbox"] {
  padding: 0;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  height: auto;
  -webkit-appearance: none !important;
}

input[type="search"] {
  -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  font-size: 1.4rem;
  color: #c1c1c1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  font-size: 1.4rem;
  color: #c1c1c1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-size: 1.4rem;
  color: #c1c1c1;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

button {
  border: none;
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: none;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

textarea {
  resize: vertical;
  overflow: auto;
}

textarea:focus {
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
form,
blockquote,
ul,
ol,
li,
dl,
dd,
td,
th {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

em,
i {
  font-style: normal;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

label {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.coupon-wrapper {
  width: 100%;
  height: auto;
  padding: 5%;
}

.coupon-wrapper .coupon-item {
  width: 100%;
}

.coupon-wrapper h3 {
  height: 3rem;
  line-height: 1.8rem;
  font-size: 1.4rem;
  color: #454545;
  padding: 2% 0;
}

.coupon-item .nick {
  padding: 0.66% 0;
  color: #fff;
}

.coupon-item .coupon-money {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  font-size: 1rem;
  align-items: center;
}

.coupon-item .coupon-money em {
  font-size: 3.8rem;
}

.coupon-item .coupon-money .lay:last-child {
  flex: 1;
  padding: 0 3%;
  line-height: 1.66rem;
}

.style-two,
.style-six {
  width: 100%;
  height: 8rem;
  position: relative;
  margin: 5% 0;

  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #fff;
  border: 1px solid #e5004f;
}

.style-two .info-box,
.style-six .info-box {
  -webkit-box: 1;
  -webkit-flex: 1;
  flex: 1;
  padding: 0 3% 0 10%;
  position: relative;
}

.style-two .info-box:before,
.style-two .info-box:after,
.style-two .get-btn:before,
.style-two .get-btn:after {
  width: 1.4rem;
  height: 1.8rem;
  position: absolute;
  z-index: 9;

  border-right: 1px solid #e5004f;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background-color: #f5f5f5;
}

.style-two .info-box:before {
  top: -1.5rem;
  left: -0.5rem;
  -webkit-transform: rotate(36deg);
  transform: rotate(36deg);
}
.style-two .info-box:after {
  bottom: -1.5rem;
  left: -0.5rem;
  -webkit-transform: rotate(-36deg);
  transform: rotate(-36deg);
}

.style-two .get-btn:before {
  top: -0.5rem;
  right: -0.35rem;
  -webkit-transform: rotate(136deg);
  transform: rotate(136deg);
}

.style-two .get-btn:after {
  bottom: -0.5rem;
  right: -0.35rem;
  -webkit-transform: rotate(-136deg);
  transform: rotate(-136deg);
}

.style-two .get-btn,
.style-six .get-btn {
  width: 24%;
  height: 8rem;
  text-align: center;
  color: #fff;
  font-size: 1.6rem;
  background-color: #e5004f;
  position: relative;
}

.style-two {
  background-color: #ed008c;
  border: 1px solid #ed008c;
  color: #fff;
}

.style-two:before,
.style-two:after {
  content: "";
  height: 0.5rem;
  position: absolute;
  display: block;
  z-index: 9;

  background-image: linear-gradient(
      135deg,
      transparent,
      transparent 45%,
      #ed008c,
      #ed008c 55%,
      transparent 100%
    ),
    linear-gradient(
      45deg,
      transparent,
      #ed008c 45%,
      #ed008c,
      transparent 55%,
      transparent 100%
    );

  background-size: 1rem 1rem;
  background-repeat: repeat-x, repeat-x;
}

.style-two:before {
  top: -0.36rem;
  left: 0.8rem;
  right: 1rem;
}

.style-two:after {
  bottom: -0.36rem;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  left: 1.1rem;
  right: 1.2rem;
}

.style-two .get-btn {
  background-color: #ed008c;
}

.style-two .get-btn span,
.style-six .get-btn span {
  width: 4rem;
  height: 8rem;
  display: inline-block;
  padding: 1.66rem 0;
  font-size: 2rem;
  word-break: break-all;
}

.style-two .of {
  color: #fff100;
}
.style-two.have .info-box:before,
.style-two.have .info-box:after {
  border-right: 1px solid #c1c1c1;
}
.style-two.have .get-btn:before,
.style-two.have .get-btn:after {
  border-right: #c1c1c1;
}

.style-two.have,
.style-three.have {
  background-color: #c1c1c1;
  border: none;
}

.style-two.have .of {
  color: #fff;
}

.style-two.have:before,
.style-two.have:after {
  background-image: linear-gradient(
      135deg,
      transparent,
      transparent 45%,
      #c1c1c1,
      #c1c1c1 55%,
      transparent 100%
    ),
    linear-gradient(
      45deg,
      transparent,
      #c1c1c1 45%,
      #c1c1c1,
      transparent 55%,
      transparent 100%
    );
}

.style-two.have .get-btn {
  background-color: #c1c1c1;
}

.style-two.have .get-btn span,
.style-three.have .get-btn span,
.style-six.have .get-btn span,
.style-seven.have .get-btn span {
  width: 1.6rem;
  padding: 1.36rem 0;
  font-size: 1.6rem;
}

.style-six .nick {
  color: #e5004f;
}

.style-six .get-btn {
  width: 28%;
  background-color: #fff;
}

.style-six .get-btn span {
  padding: 0.85rem 0;
  color: #378ae8;
}

.style-six {
  background-color: #f7dbcd;
  color: #e5004f;
  border: none;
}

.style-six:after,
.style-six:before {
  content: "";
  height: 0.5rem;
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  z-index: 9;

  background-image: linear-gradient(
      135deg,
      transparent,
      transparent 45%,
      #f5f5f5,
      #f5f5f5 68%,
      transparent 100%
    ),
    linear-gradient(
      45deg,
      transparent,
      #f5f5f5 45%,
      #f5f5f5,
      transparent 55%,
      transparent 100%
    );

  background-size: 1rem 1rem;
  background-repeat: repeat-x, repeat-x;
}

.style-six:after {
  top: -0.12rem;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.style-six:before {
  bottom: -0.12rem;
}

.style-six .get-btn span {
  color: #e5004f;
}

.style-six.have .get-btn span,
.style-seven.have .get-btn span {
  width: 1.6rem;
  padding: 1.36rem 0;
  font-size: 1.6rem;
}

.style-six.have .get-btn span {
  color: #767676;
  font-size: 1.6rem;
}
.style-six.have .get-btn span:after {
  content: "";
}
.style-six.have,
.style-seven.have {
  background-color: #c1c1c1;
}
.style-six.have .nick,
.style-six.have .of,
.style-six.have .tit,
.style-six.have .demand {
  color: #fff;
}

.style-six.have span,
.style-seven.have span {
  font-size: 1.6rem;
  color: rgba(189, 189, 189, 1);
}

.time {
  color: white;
}
.date,
.time {
  white-space: nowrap;
}
</style>
